package top.leix.springdemo.services;

import org.springframework.stereotype.Service;
import top.leix.springdemo.Res;
import top.leix.springdemo.pojo.*;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 16435
* @description 针对表【administrator(管理员表)】的数据库操作Service
* @createDate 2024-04-21 22:13:35
*/
@Service
public interface AdministratorService extends IService<Administrator> {

    //教师的增删改查
    Res queryAllTeacher();
    Res queryTeacherByName(String userName);
    Res addTeacher(Teacher teacher);
    Res updateTeacher(Teacher teacher);
    Res deleteTeacher(String userAccount);

    //学生的增删改查
    Res queryAllStudent();
    Res queryStudentByName(String userName);
    Res addStudent(Student student);
    Res updateStudent(Student student);
    Res deleteStudent(String userAccount);

    //实验员的增删改查
    Res queryAllLabAssistant();
    Res queryLabAssistantByName(String userName);
    Res addLabAssistant(LabAssistant labAssistant);
    Res updateLabAssistant(LabAssistant labAssistant);
    Res deleteLabAssistant(String userAccount);

    //Terms

    Res queryNowTerm();
    Res addTerm(Terms terms);
    Res updateTerm(Terms terms);
    Res setNowTerm(Terms terms);
    Res deleteSemester(String semester);

    Res addAdministrator(Administrator administrator);


    Res queryAllTerm();

    Res addClasstable(Classtable classtable);
}
